package zl.osimall.common.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class Addr {


    private Integer id;
    @NotBlank(message = "联系人不能为空")
    private String contact;//联系人
    @NotBlank(message = "手机不能为空")
    private String phone;
    @NotBlank(message = "省不能为空")
    private String province;
    @NotBlank(message = "城市不能为空")
    private String city;
    @NotBlank(message = "县不能为空")
    private String county;
    @NotBlank(message = "镇不能为空")
    private String town;
    @NotBlank(message = "具体不能为空")
    private String detail;
    private Integer userId;
    private Integer status;
}
